#include "game.h"

int play(SceSize args, void *argp)
{
	while (TRUE && !AppExit)
	{
		printf("game_thread\n");
		printf("%s", buffer2);
		parser(buffer2);
		//SDL_mutexP(buff2_mut);
		//int i;
		//for (i=0; i<strlen(buffer2);i++) buffer2[i] = '0';
		//SDL_mutexV(buff2_mut);
		//sceKernelDelayThread(100*10); 
		//sceKernelSuspendThread
		//int myId = sceKernelGetThreadId();
		//sceKernelResumeThread(thid);
		//sceKernelSuspendThread(thid2); 
		//sceKernelReleaseWaitThread (thid);
		
		sceKernelWakeupThread(thid);
		sceKernelSleepThread();
		
	}
	return 0;
}
